package com.huadao.cart_ccs.common.deviceController;

/**
 * 磁力搅拌器控制类
 */
public class MagneticStirrerController extends BaseController{

    //当前设备状态
    private int speed;
    private byte direction;

    private static final MagneticStirrerController ourInstance = new MagneticStirrerController();

    public static MagneticStirrerController getInstance() {
        return ourInstance;
    }

    private MagneticStirrerController() {
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public byte getDirection() {
        return direction;
    }

    public void setDirection(byte direction) {
        this.direction = direction;
    }

    public void set(int speed, byte direction) {
        this.speed=speed;
        this.direction=direction;
    }
}
